package com.xingshang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xingshang.model.dto.GoodsDto;
import com.xingshang.model.po.Cart;
import com.xingshang.model.po.GoodDoc;
import com.xingshang.model.po.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xingshang.model.vo.SearchVo;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * @author 87547
 * @description 针对表【wn_goods】的数据库操作Service
 * @createDate 2025-03-31 16:48:21
 */
public interface GoodsService extends IService<Goods> {

    public List<Goods> selectNewAll();

    public List<Goods> selectHotAll();

    public IPage<Goods> findByPage(int page, int pageSize);

    boolean insertGood(GoodsDto goodsDto);


    String addMediaFilesToMinIO(MultipartFile file) throws Exception;


    SearchVo<GoodDoc> search(Integer categoryId,String searchName, int page, int pageSize) throws IOException;

}
